package com.xtianzhuang.www.controller.mobile;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.xtianzhuang.www.controller.BaseController;
import com.xtianzhuang.www.entity.request.base.BaseRequest;
import com.xtianzhuang.www.entity.response.base.BaseResponse;

@Controller
@RequestMapping("/mobile")
public class MobileController extends BaseController {
	@RequestMapping("/index")
	public ModelAndView index(BaseRequest request, BaseResponse response) {
		ModelAndView model = new ModelAndView("mobile/index");

		super.executeBase(request, response);
		model.addObject("res", response);
		return model;
	}

	@RequestMapping("/addWorkRecord")
	public ModelAndView addWorkRecord(BaseRequest request, BaseResponse response) {
		ModelAndView model = new ModelAndView("mobile/addWorkRecord");
		super.executeBase(request, response);
		model.addObject("res", response);
		return model;
	}

	@RequestMapping("/addDailyBalancePay")
	public ModelAndView addDailyBalancePay(BaseRequest request, BaseResponse response) {
		ModelAndView model = new ModelAndView("mobile/addDailyBalancePay");
		super.executeBase(request, response);
		model.addObject("res", response);
		return model;
	}
}
